package Class;

public class SingletonCommandeCourante {
	
	private static SingletonCommandeCourante courant;
	private Commande commandeCourante; 
	private SingletonCommandeCourante(){
		commandeCourante = new Commande();
	}
	public static SingletonCommandeCourante getCommandeCourante(){
		if (courant == null)
			courant = new SingletonCommandeCourante();
		return courant;
	}
	public Commande getCommande()
	{
		return commandeCourante;
	}
	public void nouvelleCommande()
	{
		commandeCourante = new Commande();
	}
}
